package com.lyx.lib_audio.mediaplayer.db;

import com.lyx.lib_audio.mediaplayer.model.Favourite;

public class FavouriteDBHelper {

    private volatile static FavouriteDBHelper instance = new FavouriteDBHelper();
    private CommonDaoUtils<Favourite> mUserDaoUtils;

    public static FavouriteDBHelper getInstance() {
        return instance;
    }

    private FavouriteDBHelper() {
        DaoManager mManager = DaoManager.getInstance();
        AudioBeanDao audioBeanDao = mManager.getDaoSession().getAudioBeanDao();
        mUserDaoUtils = new CommonDaoUtils(Favourite.class, audioBeanDao);
    }

    public CommonDaoUtils<Favourite> getFavouriteDaoUtils() {
        return mUserDaoUtils;
    }

}
